package main

import "fmt"

func main() {
	x := map[string]string{"1": "110", "2": "120", "3": "119"}

	y := map[string]string{"1": "111", "2": "120", "4": "129"}
	// 判断两个map是否拥有相同的键和值
	fmt.Println(chickMap(x, y))
}

func chickMap(a map[string]string, b map[string]string) bool {
	var ishave = false
	for akey, aval := range a {
		for bkey, bval := range b {
			if akey == bkey {
				if aval == bval {
					ishave = true
					break
				}
			}
		}
		if ishave {
			break
		}
	}
	return ishave
}
